#ifndef PIXELBUFFER_H
#define PIXELBUFFER_H

#include "Pixel.h"

class PixelBuffer
{
    Pixel** pixels;
    int width;
    int height;
public:
    int Width(); 
    int Height();
    Pixel** Pixels();
    void Pixels(Pixel** newPixels, int newWidth, int newHeight);
    Pixel** Resize(int newWidth, int newHeight, bool deallcoate = true);
    PixelBuffer(int width, int height);
    PixelBuffer();
    ~PixelBuffer();
private:
    void DeallocatePixels();
    void AllocatePixels(int newWidth, int newHeight);
};

#endif // PIXELBUFFER_H
